// @Copyright (c) 2021.
// @Author ${USER}
// @Date ${DATE}
package model

import "time"

type AdminAuthorization struct {
	ID          uint       `gorm:"primary_key" json:"id"`
	Name        string     `json:"name" gorm:"name"`
	Url         string     `json:"url" gorm:"url"`
	Type        int        `json:"type" gorm:"type"`
	AppName     string     `json:"app_name" gorm:"app_name"`
	CreatedUid  string     `json:"created_uid" gorm:"created_uid"`
	OperatedUid string     `json:"operated_uid" gorm:"operated_uid"`
	DeletedAt   *time.Time `json:"deleted_at" gorm:"deleted_at"`
	UpdatedAt   time.Time  `json:"updated_at" gorm:"updated_at"`
	CreatedAt   time.Time  `json:"created_at" gorm:"created_at"`
}

func TableName() (res string) {
	return "admin_authorization"
}
